<div class="modal-body no-p">
    <div class="row">
        <div class="col-xs-12">
            <section class="panel panel-primary no-b">
                <header class="panel-heading clearfix brtl brtr">
                    <div class="overflow-hidden">
                        <a href="javascript:;" class="h4 show no-m pt5">添加追单信息</a>
                    </div>
                </header>
                <form id="addForm" role="form" class="form-horizontal parsley-form" data-parsley-validate
                      action="${base}/platform/customer/documentary/addDo" method="post">
                    <input type="hidden" id="customerId" name="customerId" value="${obj.id}" />
                    <div class="row mb10">
                        <div class="col-lg-12">
                            <div class="form-group">
                                <label for="content" class="col-sm-2 control-label">内容</label>
                                <div class="col-sm-8">
                                    <input type="text" id="content" class="form-control" name="content" data-parsley-required="true" data-parsley-maxlength="200" placeholder="内容">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="companyName" class="col-sm-2 control-label">公司名称</label>
                                <div class="col-sm-8">
                                    <input type="text" id="companyName" class="form-control" name="companyName" value="${obj.companyName}"  readonly  placeholder="公司名称">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="at" class="col-sm-2 control-label">下次跟进时间</label>

                                <div class="col-sm-8 input-group date form_datetime " style="padding-left: 16px;padding-right: 16px;" data-date="1979-09-16T05:25:07Z" data-date-format="dd MM yyyy - HH:ii p" data-link-field="at">
                                    <input type="text" size="16" readonly class="form-control" value="${@date.getDateTime()}" data-parsley-required="true">
                                    <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
                                    <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
                                </div>
                                <input type="hidden" id="at" name="at" value="${@date.getDateTime()}" />
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-3"></div>
                    <div class="col-lg-6">
                        <div class="form-group text-center">
                            <label></label>

                            <div>
                                <button class="btn btn-primary btn-block btn-lg btn-parsley" data-loading-text="正在提交...">提 交</button>
                            </div>
                        </div>
                    </div>
                </form>
            </section>
        </div>
    </div>
</div>
<script language="JavaScript">
    $(document).ready(function () {
        $('.form_datetime').datetimepicker({
            language:  'zh-CN',
            format:'yyyy-mm-dd hh:ii:ss',
            weekStart: 1,
            todayBtn:  1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
            forceParse: 0,
            showMeridian: 1
        });
        $('#addForm').ajaxForm({
            dataType: 'json',
            beforeSubmit: function (arr, form, options) {
                form.find("button:submit").button("loading");
            },
            success: function (data, statusText, xhr, form) {
                if (data.code == 0) {
                    Toast.success(data.msg);
                    form.resetForm();
                } else {
                    Toast.error(data.msg);
                }
                form.find("button:submit").button("reset");
            }
        });
    });
</script>


